<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>搜索结果</title>
</head>
<body>
<h1>搜索结果：<span th:text="${keyword}"></span></h1>

<h2>电影</h2>
<ul>
    <li th:each="movie : ${movies}">
        <a th:href="@{/movieInfo(mid=${movie.mid}, username=${username})}" th:text="${movie.mtitle}"></a>

    </li>
</ul>

<h2>演员</h2>
<ul>
    <li th:each="actor : ${actors}">
        <a th:href="@{/actorsInfo(aid=${actor.aid}, username=${username}, keyword=${keyword}, pageSize=${pageSize})}" th:text="${actor.aname}"></a>
    </li>
</ul>

<h2>导演</h2>
<ul>
    <li th:each="director : ${directors}">
        <a th:href="@{/directorsInfo(did=${director.did}, username=${username}, keyword=${keyword}, pageSize=${pageSize})}" th:text="${director.dname}"></a>
    </li>
</ul>

<a th:href="@{/successPage(username=${username}, page=0, size=${pageSize})}">返回</a>

</body>
</html>